<?php
	// No direct access to this file
	defined('_JEXEC') or die('Restricted access');
	$url = $this->baseurl.'/images/com_retailshop/';
?>
<div id="detail-shop" class="block">
            	<?php echo $this->loadTemplate('header');?>
            </div>
			<div id="category-block" class="block">
              	<h4>Category</h4>
                <div class="block-content">
                	<ul>
						<?php if($this->catagorys == null){ ?>
						<li class="no-category">NO CATEGORY</li>
						<?php }else{ ?>
						<?php foreach($this->catagorys as $c){ ?>
						<li><a a href="index.php?option=com_retailshop&view=myshop&task=products&shop_id=<?php echo $this->shop->id ?>&idp=<?php echo $c->id; ?>"><?php echo $c->name; ?></a></li>
						<?php }} ?>
                    </ul>
                </div>
              </div>
            
            <div id="list-events" class="block">
            	<h4>List Events</h4>
                <ul class="carou">
					<?php if ($this->events == null){ ?>
					<li class="no-event">NO EVENT</li>
					<?php }else { ?>
					<?php foreach($this->events as $e){ ?>
                	<li>
						<a href="index.php?option=com_retailshop&view=myshop&task=eventdetail&idp=<?php echo $e->id; ?>&shop_id=<?php echo $e->shop_id; ?>"><p><?php echo $e->title; ?></p></a>
						<span class="from">From: </span>
						<span class="start-date"><?php echo substr($e->start_date,0,10)?></span>
						- <span class="to">To: </span>
						<span class="end-date"><?php echo substr($e->end_date,0,10); ?></span>
					
					</li>                    
					<?php } } ?>
                </ul>
            </div> 